package thread;

import java.util.Scanner;

public class SleepDemo {
    public static void main(String[] args) throws InterruptedException {
        Scanner  scan = new Scanner(System.in);
        System.out.print("请输入秒数:");
        int time = scan.nextInt();
        for (int i = time; i >= 0; i--){
            Thread.sleep(1000);
            System.out.println(i);
        }
        System.out.println("时间到");
    }
}
